package com.yu.rpc.core.fault.retry;

import com.yu.rpc.core.model.RPCResponse;

import java.util.concurrent.Callable;

/**
 * 不重试策略
 */
public class NoRetryStrategy implements RetryStrategy{
    @Override
    public RPCResponse doRetry(Callable<RPCResponse> callable) throws Exception {
        return callable.call();
    }
}
